package com.snoopy.gas1.mapper;

import com.snoopy.gas1.entity.Employee_info;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
@Mapper
public interface Employee_infoMapper {
    // 查询所有员工
    List<Employee_info> lists();

    // 根据名称模糊查询
    List<Employee_info> searchByName(String name);

    // 根据ID删除
    void deleteById(int id);

    // 添加员工
    int add(Employee_info employeeInfo);

    // 根据ID查询
    Employee_info getById(int id);

    // 更新员工信息
    int update(Employee_info employeeInfo);
}